40923232 cp2020

  • Home
    • Site Map
    • reveal
    • blog
  • 首頁
  • HW1
    • PCH9 Network Overview(網路總覽)
      • Network Defined by Geography(地理定義的網路)
      • Network Defined by Relationships(關係定義的網路)
      • Network Defined by Topology(結構定義的網路)
    • PCH10 Network Hardware(網路硬體)
      • Network Devices(網路裝置)
      • Install a Network Adapter(安裝網路適配器)
  • HW2
    • HW2-1 取得四設一甲分組數列
    • HW2-2 查看加退選
    • HW2-3 取得W3網頁html
  • HW3
    • 22. Read From File(讀取檔案)
    • 23. File Overlap(檔案交疊)
    • 29. Tic Tac Toe Game
  • Get Rickroll
  • 心得
HW2 << Previous Next >> HW2-2 查看加退選

HW2-1 取得四設一甲分組數列

Kaggle Notebook: https://www.kaggle.com/a40923232/cp2020hw2-1

import urllib.request
url = "https://nfulist.herokuapp.com/?semester=1091&courseno=0776"
cp1b = []
for line in urllib.request.urlopen(url):
    cp1b.append(int(line.decode('utf-8').rstrip()))
print(cp1b)
print("共" + str(len(cp1b)) + "筆")
#print("https://github.com/" + str(cp1b) + "/cp2020" /n)
def site(num):
    print("https://github.com/" + str(num) + "/cp2020")
for num in cp1b:
    site(num)


感謝組員的指導。

HW2 << Previous Next >> HW2-2 查看加退選

Copyright © All rights reserved | This template is made with by Colorlib